const uniq = require('uniq');

var arr = [1, 1, 2, 2, 3, 5];


console.log(uniq(arr)); //[ 1, 2, 3, 5 ]
